<?php

/**
 * App
 *
 * @package App
 * @subpackage page
 */
require_once 'App.php';

/**
 * * Admin_Root_Index
 *
 * <pre>トップページ管理
 * </pre>
 *
 * @package     App
 * @subpackage  page
 * @author      $Author: moriwaki $
 * @version     $Id: index.php 2008-09-10 moriwaki　$
 */
class Admin_Root_Index extends App_Page
{
    /**
     * 認証タイプ
     *
     * @var string
     */
    var $auth = App::AUTH_TOOL;
    
    /**
     * onInit
     *
     * @return void
     * @author moriwaki
     */
    function onInit()
    {
        
        $params = array();
        $params['mode'] = 'list';
        $params['limit'] = 50;
        $resource = new BEAR_Resource('admin_auth');
        $resource->read($params);
        $view['entries'] = $resource->getResult();
        $pager = $resource->getPager();
    
        /* セット */
        $this->set('view', $view);
        $this->set('pager', $pager);
    }
}

new BEAR_Main('Admin_Root_Index');